<template>
  <div id="databox">
    <treeselect ref="child" :v-model="valueId" :props="props" :options="deptOptions" :clearable="isClearable"
      :accordion="isAccordion" :dataMaxFlag="isDataMaxFlag" @valueHandler="apply"></treeselect>
  </div>
</template>

<script>
  import treeselect from "@/components/tree-select";

  export default {
    components: {
      treeselect,
    },
    data() {
      return {
        currentindex: '0', //当前选项卡的索引
        isClearable: true, // 可清空（可选）
        isAccordion: true, // 可收起（可选）
        valueId: '', // 初始ID（可选）
        isDataMaxFlag:false,//是否开启大数据模式
        props: { // 配置项（必选）
          value: 'id',
          label: 'value',
          children: 'children'
        },
        deptOptions: [{
          "id": "1",
          "code": "110000000000",
          "value": "北京市",
          "dtyKeyCode": "area",
          "dtyName": "区域",
          "parentCode": "-1",
          "parentName": null,
          "description": null,
          "level": 0,
          "status": null,
          "isDel": null,
          "sort": 1,
          "createUser": null,
          "createTime": null,
          "updateTime": null,
          "updateUser": null,
          "childList": null,
          "children": [{
            "id": "32",
            "code": "110100000000",
            "value": "市辖区",
            "dtyKeyCode": "area",
            "dtyName": "区域",
            "parentCode": "110000000000",
            "parentName": "北京市",
            "description": null,
            "level": 1,
            "status": null,
            "isDel": null,
            "sort": 32,
            "createUser": null,
            "createTime": null,
            "updateTime": null,
            "updateUser": null,
            "childList": null,
            "_level": 2,
            "children": [{
                "id": "543",
                "code": "110101000000",
                "value": "东城区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 374,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "544",
                "code": "110102000000",
                "value": "西城区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 375,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "545",
                "code": "110105000000",
                "value": "朝阳区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 376,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "546",
                "code": "110106000000",
                "value": "丰台区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 377,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "547",
                "code": "110107000000",
                "value": "石景山区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 378,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "548",
                "code": "110108000000",
                "value": "海淀区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 379,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "549",
                "code": "110109000000",
                "value": "门头沟区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 380,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "550",
                "code": "110111000000",
                "value": "房山区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 381,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "551",
                "code": "110112000000",
                "value": "通州区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 382,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "552",
                "code": "110113000000",
                "value": "顺义区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 383,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "553",
                "code": "110114000000",
                "value": "昌平区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 384,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "554",
                "code": "110115000000",
                "value": "大兴区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 385,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "555",
                "code": "110116000000",
                "value": "怀柔区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 386,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "556",
                "code": "110117000000",
                "value": "平谷区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 387,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "557",
                "code": "110118000000",
                "value": "密云区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 388,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "558",
                "code": "110119000000",
                "value": "延庆区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 389,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              }
            ]
          }],
          "_level": 1
        }, {
          "id": "2",
          "code": "110000000000",
          "value": "北京市",
          "dtyKeyCode": "area",
          "dtyName": "区域",
          "parentCode": "-1",
          "parentName": null,
          "description": null,
          "level": 0,
          "status": null,
          "isDel": null,
          "sort": 1,
          "createUser": null,
          "createTime": null,
          "updateTime": null,
          "updateUser": null,
          "childList": null,
          "children": [{
            "id": "32",
            "code": "110100000000",
            "value": "市辖区",
            "dtyKeyCode": "area",
            "dtyName": "区域",
            "parentCode": "110000000000",
            "parentName": "北京市",
            "description": null,
            "level": 1,
            "status": null,
            "isDel": null,
            "sort": 32,
            "createUser": null,
            "createTime": null,
            "updateTime": null,
            "updateUser": null,
            "childList": null,
            "_level": 2,
            "children": [{
                "id": "543",
                "code": "110101000000",
                "value": "东城区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 374,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "544",
                "code": "110102000000",
                "value": "西城区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 375,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "545",
                "code": "110105000000",
                "value": "朝阳区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 376,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "546",
                "code": "110106000000",
                "value": "丰台区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 377,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "547",
                "code": "110107000000",
                "value": "石景山区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 378,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "548",
                "code": "110108000000",
                "value": "海淀区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 379,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "549",
                "code": "110109000000",
                "value": "门头沟区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 380,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "550",
                "code": "110111000000",
                "value": "房山区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 381,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "551",
                "code": "110112000000",
                "value": "通州区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 382,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "552",
                "code": "110113000000",
                "value": "顺义区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 383,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "553",
                "code": "110114000000",
                "value": "昌平区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 384,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "554",
                "code": "110115000000",
                "value": "大兴区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 385,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "555",
                "code": "110116000000",
                "value": "怀柔区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 386,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "556",
                "code": "110117000000",
                "value": "平谷区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 387,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "557",
                "code": "110118000000",
                "value": "密云区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 388,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "558",
                "code": "110119000000",
                "value": "延庆区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 389,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              }
            ]
          }],
          "_level": 1
        }, {
          "id": "3",
          "code": "110000000000",
          "value": "北京市",
          "dtyKeyCode": "area",
          "dtyName": "区域",
          "parentCode": "-1",
          "parentName": null,
          "description": null,
          "level": 0,
          "status": null,
          "isDel": null,
          "sort": 1,
          "createUser": null,
          "createTime": null,
          "updateTime": null,
          "updateUser": null,
          "childList": null,
          "children": [{
            "id": "32",
            "code": "110100000000",
            "value": "市辖区",
            "dtyKeyCode": "area",
            "dtyName": "区域",
            "parentCode": "110000000000",
            "parentName": "北京市",
            "description": null,
            "level": 1,
            "status": null,
            "isDel": null,
            "sort": 32,
            "createUser": null,
            "createTime": null,
            "updateTime": null,
            "updateUser": null,
            "childList": null,
            "_level": 2,
            "children": [{
                "id": "543",
                "code": "110101000000",
                "value": "东城区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 374,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "544",
                "code": "110102000000",
                "value": "西城区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 375,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "545",
                "code": "110105000000",
                "value": "朝阳区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 376,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "546",
                "code": "110106000000",
                "value": "丰台区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 377,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "547",
                "code": "110107000000",
                "value": "石景山区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 378,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "548",
                "code": "110108000000",
                "value": "海淀区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 379,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "549",
                "code": "110109000000",
                "value": "门头沟区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 380,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "550",
                "code": "110111000000",
                "value": "房山区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 381,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "551",
                "code": "110112000000",
                "value": "通州区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 382,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "552",
                "code": "110113000000",
                "value": "顺义区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 383,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "553",
                "code": "110114000000",
                "value": "昌平区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 384,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "554",
                "code": "110115000000",
                "value": "大兴区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 385,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "555",
                "code": "110116000000",
                "value": "怀柔区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 386,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "556",
                "code": "110117000000",
                "value": "平谷区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 387,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "557",
                "code": "110118000000",
                "value": "密云区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 388,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "558",
                "code": "110119000000",
                "value": "延庆区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 389,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              }
            ]
          }],
          "_level": 1
        }, {
          "id": "4",
          "code": "110000000000",
          "value": "北京市",
          "dtyKeyCode": "area",
          "dtyName": "区域",
          "parentCode": "-1",
          "parentName": null,
          "description": null,
          "level": 0,
          "status": null,
          "isDel": null,
          "sort": 1,
          "createUser": null,
          "createTime": null,
          "updateTime": null,
          "updateUser": null,
          "childList": null,
          "children": [{
            "id": "32",
            "code": "110100000000",
            "value": "市辖区",
            "dtyKeyCode": "area",
            "dtyName": "区域",
            "parentCode": "110000000000",
            "parentName": "北京市",
            "description": null,
            "level": 1,
            "status": null,
            "isDel": null,
            "sort": 32,
            "createUser": null,
            "createTime": null,
            "updateTime": null,
            "updateUser": null,
            "childList": null,
            "_level": 2,
            "children": [{
                "id": "543",
                "code": "110101000000",
                "value": "东城区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 374,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "544",
                "code": "110102000000",
                "value": "西城区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 375,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "545",
                "code": "110105000000",
                "value": "朝阳区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 376,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "546",
                "code": "110106000000",
                "value": "丰台区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 377,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "547",
                "code": "110107000000",
                "value": "石景山区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 378,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "548",
                "code": "110108000000",
                "value": "海淀区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 379,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "549",
                "code": "110109000000",
                "value": "门头沟区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 380,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "550",
                "code": "110111000000",
                "value": "房山区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 381,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "551",
                "code": "110112000000",
                "value": "通州区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 382,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "552",
                "code": "110113000000",
                "value": "顺义区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 383,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "553",
                "code": "110114000000",
                "value": "昌平区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 384,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "554",
                "code": "110115000000",
                "value": "大兴区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 385,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "555",
                "code": "110116000000",
                "value": "怀柔区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 386,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "556",
                "code": "110117000000",
                "value": "平谷区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 387,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "557",
                "code": "110118000000",
                "value": "密云区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 388,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "558",
                "code": "110119000000",
                "value": "延庆区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 389,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              }
            ]
          }],
          "_level": 1
        }, {
          "id": "5",
          "code": "110000000000",
          "value": "北京市",
          "dtyKeyCode": "area",
          "dtyName": "区域",
          "parentCode": "-1",
          "parentName": null,
          "description": null,
          "level": 0,
          "status": null,
          "isDel": null,
          "sort": 1,
          "createUser": null,
          "createTime": null,
          "updateTime": null,
          "updateUser": null,
          "childList": null,
          "children": [{
            "id": "32",
            "code": "110100000000",
            "value": "市辖区",
            "dtyKeyCode": "area",
            "dtyName": "区域",
            "parentCode": "110000000000",
            "parentName": "北京市",
            "description": null,
            "level": 1,
            "status": null,
            "isDel": null,
            "sort": 32,
            "createUser": null,
            "createTime": null,
            "updateTime": null,
            "updateUser": null,
            "childList": null,
            "_level": 2,
            "children": [{
                "id": "543",
                "code": "110101000000",
                "value": "东城区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 374,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "544",
                "code": "110102000000",
                "value": "西城区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 375,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "545",
                "code": "110105000000",
                "value": "朝阳区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 376,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "546",
                "code": "110106000000",
                "value": "丰台区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 377,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "547",
                "code": "110107000000",
                "value": "石景山区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 378,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "548",
                "code": "110108000000",
                "value": "海淀区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 379,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "549",
                "code": "110109000000",
                "value": "门头沟区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 380,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "550",
                "code": "110111000000",
                "value": "房山区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 381,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "551",
                "code": "110112000000",
                "value": "通州区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 382,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "552",
                "code": "110113000000",
                "value": "顺义区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 383,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "553",
                "code": "110114000000",
                "value": "昌平区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 384,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "554",
                "code": "110115000000",
                "value": "大兴区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 385,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "555",
                "code": "110116000000",
                "value": "怀柔区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 386,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "556",
                "code": "110117000000",
                "value": "平谷区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 387,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "557",
                "code": "110118000000",
                "value": "密云区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 388,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              },
              {
                "id": "558",
                "code": "110119000000",
                "value": "延庆区",
                "dtyKeyCode": "area",
                "dtyName": "区域",
                "parentCode": "110100000000",
                "parentName": "市辖区",
                "description": null,
                "level": 2,
                "status": null,
                "isDel": null,
                "sort": 389,
                "createUser": null,
                "createTime": null,
                "updateTime": null,
                "updateUser": null,
                "childList": null,
                "_level": 3
              }
            ]
          }],
          "_level": 1
        }]
      }
    },
    mounted() {
      //设置默认值
      // this.$refs.child.setInitId("544");
      // this.$refs.child.initHandle();
    },
    methods: {
      //获取已选中
      apply(id){
       console.log(id);
      }
    }
  }
</script>

<style>
</style>
